﻿<Page x:Class="Resn.WhuPub.WPFClientUI.ManageInvoiceDeliverysPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      Title="ManageExamineePage" MinWidth="1000" MinHeight="500" Loaded="Page_Loaded">

        <Grid Name="LayoutRoot">
                <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <Grid>
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Text="员工管理"
                                   Style="{DynamicResource TextBlockStyle}" />
                        <Button Content="新建" Grid.Column="2" Name="CreateButton"
                                Style="{DynamicResource ButtonStyle}" Click="CreateButton_Click" />
                        <Button Content="搜索" Grid.Column="3" Name="SerachButton"
                                Style="{DynamicResource ButtonStyle}" Click="SearchButton_Click" />
                </Grid>

                <Grid Grid.Row="1">
                        <ListBox Name="InvoiceDeliverysListBox"
                                 Style="{StaticResource ListBoxStyle}"
                                 ItemsSource="{Binding InvoiceDeliverys}"
                                 ItemTemplate="{StaticResource InvoiceDeliveryDataTemplate}"
                                 SelectedValue="{Binding InvoiceDelivery}"
                                 MouseDoubleClick="InvoiceDeliverysListBox_OnMouseDoubleClick" />
                </Grid>

                <Grid Grid.Row="2">
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Button Grid.Column="1" Content="返回" Name="BackButton"
                                Style="{DynamicResource ButtonStyle}" IsCancel="True" Command="BrowseBack" />
                </Grid>
        </Grid>
</Page>